package ToYesterday.Day20_getSum;

import org.junit.Test;

public class Solution {

    @Test
    public void Test(){
        int x = getSum(2,7);
        System.out.println(x);
    }


    public int getSum(int a, int b) {
        while (b!=0) {
            int x= ((a&b)<<1);
            a=a^b;
            b=x;
        };
        return a^b;
    }

}
